/**
 * Copyright (C), 2015-2021, XXX有限公司
 * FileName: MaterialResult
 * Author:   Administrator
 * Date:     2021/8/3 0003 20:23
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package cn.hxlc.tie.demo.modular.material.model.result;

import cn.hxlc.tie.demo.core.enums.MaterialTypeEnum;
import cn.hxlc.tie.demo.core.enums.StatusEnum;
import cn.hxlc.tie.libs.scanner.stereotype.EntityResource;
import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.SerializerFeature;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * 〈一句话功能简述〉<br> 
 * 〈〉
 *
 * @author Administrator
 * @create 2021/8/3 0003
 * @since 1.0.0
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@EntityResource(entityName = "物料信息",enableTagPrint = true)
public class MaterialResult {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("物料编号")
    private Long fid;

    @ApiModelProperty("物料编码")
    private String fnumber;

    @JSONField(serialzeFeatures= SerializerFeature.WriteEnumUsingToString)
    @ApiModelProperty("状态")
    private StatusEnum fstatus;

    @ApiModelProperty("物料简称")
    private String fsimplename;

    @ApiModelProperty("物料名称")
    private String fname;

    @ApiModelProperty("计量单位")
    private Long fbaseunitid;

    @ApiModelProperty("创建人")
    private Long fcreatorid;

    @ApiModelProperty("分类id")
    private Long fgroupid;

    @ApiModelProperty("物品颜色")
    private Long fcolorid;

    @ApiModelProperty("物品属性")
    @JSONField(serialzeFeatures= SerializerFeature.WriteEnumUsingToString)
    private MaterialTypeEnum ftype;

    @ApiModelProperty("长度")
    private BigDecimal flength;

    @ApiModelProperty("宽度")
    private BigDecimal fwidth;

    @ApiModelProperty("高度")
    private BigDecimal fheight;

    @ApiModelProperty("体积")
    private BigDecimal fvolume;

    @ApiModelProperty("尺寸单位")
    private Long fsizeunitid;

    @ApiModelProperty("是否启用保质期 0否1是")
    private Integer fisuseShelfLife;

    @ApiModelProperty("保质期")
    private Long fshelfLife;

    @ApiModelProperty("是否启用辅助属性 0否1是")
    private Integer fisuseAuxProperty;

    @ApiModelProperty("辅助属性")
    private String fauxProperty;

    @ApiModelProperty("是否包材 0否1是")
    private Integer fispackage;
}
